package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class SchemaNameList {

    private int beginIndex;
    private int endIndex;
    private List<SchemaName> schemaNameList;

    public SchemaNameList(List<SchemaName> schemaNameList) {
        this.beginIndex = schemaNameList.get(0).getBeginIndex();
        this.endIndex = schemaNameList.get(schemaNameList.size() - 1).getEndIndex();
        this.schemaNameList = schemaNameList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return schemaNameList.size();
    }

    public SchemaName get(int index) {
        return schemaNameList.get(index);
    }

}
